using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace ArchSoft
{
    public partial class ViewDwgFrm : Form
    {
        string path = "";
        //string filename = "";
        public ViewDwgFrm()
        {
            InitializeComponent();
        }

        public ViewDwgFrm(string path)
        {
            this.path = path;
            InitializeComponent();
        }

        private void ViewDwgFrm_Load(object sender, EventArgs e)
        {
            this.Text +=" " + Path.GetFileName(path) ;
            axDwgViewX1.DrawingFile = path;
            axDwgViewX1.ShowToobar = false;
            axDwgViewX1.OpenZoomextend = true;


           // MessageBox.Show(axDwgViewX1.ClientSize.Height.ToString());
           // MessageBox.Show(axDwgViewX1.ClientSize.Width.ToString());

           //MessageBox.Show( axDwgViewX1.ClientRectangle.Top.ToString());
           //MessageBox.Show( axDwgViewX1.ClientRectangle.Bottom.ToString());
           //MessageBox.Show( axDwgViewX1.ClientRectangle.Left.ToString());
           //MessageBox.Show( axDwgViewX1.ClientRectangle.Right.ToString());

           //MessageBox.Show( axDwgViewX1.ClientRectangle.Location.X.ToString());
           //MessageBox.Show( axDwgViewX1.ClientRectangle.Location.Y.ToString());

           //MessageBox.Show( axDwgViewX1.ClientRectangle.Width.ToString());
           //MessageBox.Show( axDwgViewX1.ClientRectangle.Height.ToString());

           //axDwgViewX1.ClientSize.Height.ToString();
           //axDwgViewX1.ClientSize.Width.ToString();

            
            
            

            


            
        }

        private void axDwgViewX1_Enter(object sender, EventArgs e)
        {

        }

    }
}